<?php
	foreach($beneficiaries as $beneficiary)
	{
		$i = $beneficiary->Id;
?>
		<form method="post" action="../update">
			<input 	type="hidden" 
					name="id" 
					value="<?php echo $i; ?>" />
			<div>Id: <?php echo $i; ?></div>
			<div>Full name: <input 	type="text" 
									name="fullName" 
									value="<?php echo $beneficiary->FullName; ?>" /></div>
			<div>Needed donation: <input 	type="text" 
											name="neededDonation" 
											value="<?php echo $beneficiary->NeededDonation; ?>" /></div>
			<div>Current donation: <input 	type="text" 
											name="currentDonation" 
											value="<?php echo $beneficiary->CurrentDonation; ?>" /></div>
			<div>Event Id: <input 	type="text" 
									name="eventId" 
									value="<?php echo $beneficiary->EventId; ?>" /></div>
			<input type="submit" name="cancel" value="Cancel" />
			<input type="submit" name="save" value="Save" />
		</form>
<?php
	}
?>